home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / GXFonts.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  12.2 KB  |  643 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        GXFonts.a
  3. ;
  4. ;    Contains:    QuickDraw GX font routine interfaces.
  5. ;
  6. ;    Version:    Technology:    Quickdraw GX 1.1
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__GXFONTS__') = 'UNDEFINED' THEN
  21. __GXFONTS__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  25.     include 'ConditionalMacros.a'
  26.     ENDIF
  27.  
  28.     IF &TYPE('__GXMATH__') = 'UNDEFINED' THEN
  29.     include 'GXMath.a'
  30.     ENDIF
  31. ;        include 'Types.a'                                            ;
  32. ;        include 'FixMath.a'                                        ;
  33.  
  34.     IF &TYPE('__GXTYPES__') = 'UNDEFINED' THEN
  35.     include 'GXTypes.a'
  36.     ENDIF
  37. ;        include 'MixedMode.a'                                        ;
  38.  
  39.     IF &TYPE('__SCALERTYPES__') = 'UNDEFINED' THEN
  40.     include 'ScalerTypes.a'
  41.     ENDIF
  42. ;        include 'SFNTTypes.a'                                        ;
  43.     fontRoutinesIncludes: SET 1
  44. ;
  45. ; gxFont GXNewFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes)
  46. ;
  47.     IF ¬ GENERATINGCFM THEN
  48.         Macro
  49.         _GXNewFont
  50.             move.w    #$201,d0
  51.             dc.w     $A832
  52.         EndM
  53.     ELSE
  54.         IMPORT_CFM_FUNCTION    GXNewFont
  55.     ENDIF
  56.  
  57. ;
  58. ; gxFontStorageTag GXGetFont(gxFont fontID, gxFontStorageReference *reference, gxFontAttribute *attributes)
  59. ;
  60.     IF ¬ GENERATINGCFM THEN
  61.         Macro
  62.         _GXGetFont
  63.             move.w    #$202,d0
  64.             dc.w     $A832
  65.         EndM
  66.     ELSE
  67.         IMPORT_CFM_FUNCTION    GXGetFont
  68.     ENDIF
  69.  
  70. ;
  71. ; gxFont GXFindFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute *attributes)
  72. ;
  73.     IF ¬ GENERATINGCFM THEN
  74.         Macro
  75.         _GXFindFont
  76.             move.w    #$203,d0
  77.             dc.w     $A832
  78.         EndM
  79.     ELSE
  80.         IMPORT_CFM_FUNCTION    GXFindFont
  81.     ENDIF
  82.  
  83. ;
  84. ; void GXSetFont(gxFont fontID, gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes)
  85. ;
  86.     IF ¬ GENERATINGCFM THEN
  87.         Macro
  88.         _GXSetFont
  89.             move.w    #$204,d0
  90.             dc.w     $A832
  91.         EndM
  92.     ELSE
  93.         IMPORT_CFM_FUNCTION    GXSetFont
  94.     ENDIF
  95.  
  96. ;
  97. ; void GXDisposeFont(gxFont fontID)
  98. ;
  99.     IF ¬ GENERATINGCFM THEN
  100.         Macro
  101.         _GXDisposeFont
  102.             move.w    #$205,d0
  103.             dc.w     $A832
  104.         EndM
  105.     ELSE
  106.         IMPORT_CFM_FUNCTION    GXDisposeFont
  107.     ENDIF
  108.  
  109. ;
  110. ; void GXChangedFont(gxFont fontID)
  111. ;
  112.     IF ¬ GENERATINGCFM THEN
  113.         Macro
  114.         _GXChangedFont
  115.             move.w    #$206,d0
  116.             dc.w     $A832
  117.         EndM
  118.     ELSE
  119.         IMPORT_CFM_FUNCTION    GXChangedFont
  120.     ENDIF
  121.  
  122. ;
  123. ; gxFontFormatTag GXGetFontFormat(gxFont fontID)
  124. ;
  125.     IF ¬ GENERATINGCFM THEN
  126.         Macro
  127.         _GXGetFontFormat
  128.             move.w    #$207,d0
  129.             dc.w     $A832
  130.         EndM
  131.     ELSE
  132.         IMPORT_CFM_FUNCTION    GXGetFontFormat
  133.     ENDIF
  134.  
  135. ;
  136. ; gxFont GXGetDefaultFont(void)
  137. ;
  138.     IF ¬ GENERATINGCFM THEN
  139.         Macro
  140.         _GXGetDefaultFont
  141.             move.w    #$208,d0
  142.             dc.w     $A832
  143.         EndM
  144.     ELSE
  145.         IMPORT_CFM_FUNCTION    GXGetDefaultFont
  146.     ENDIF
  147.  
  148. ;
  149. ; gxFont GXSetDefaultFont(gxFont fontID)
  150. ;
  151.     IF ¬ GENERATINGCFM THEN
  152.         Macro
  153.         _GXSetDefaultFont
  154.             move.w    #$209,d0
  155.             dc.w     $A832
  156.         EndM
  157.     ELSE
  158.         IMPORT_CFM_FUNCTION    GXSetDefaultFont
  159.     ENDIF
  160.  
  161. ;
  162. ; long GXFindFonts(gxFont familyID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long length, const unsigned char text[], long index, long count, gxFont fonts[])
  163. ;
  164.     IF ¬ GENERATINGCFM THEN
  165.         Macro
  166.         _GXFindFonts
  167.             move.w    #$20a,d0
  168.             dc.w     $A832
  169.         EndM
  170.     ELSE
  171.         IMPORT_CFM_FUNCTION    GXFindFonts
  172.     ENDIF
  173.  
  174. ;
  175. ; long GXCountFontGlyphs(gxFont fontID)
  176. ;
  177.     IF ¬ GENERATINGCFM THEN
  178.         Macro
  179.         _GXCountFontGlyphs
  180.             move.w    #$20b,d0
  181.             dc.w     $A832
  182.         EndM
  183.     ELSE
  184.         IMPORT_CFM_FUNCTION    GXCountFontGlyphs
  185.     ENDIF
  186.  
  187. ;
  188. ; long GXCountFontTables(gxFont fontID)
  189. ;
  190.     IF ¬ GENERATINGCFM THEN
  191.         Macro
  192.         _GXCountFontTables
  193.             move.w    #$20c,d0
  194.             dc.w     $A832
  195.         EndM
  196.     ELSE
  197.         IMPORT_CFM_FUNCTION    GXCountFontTables
  198.     ENDIF
  199.  
  200. ;
  201. ; long GXGetFontTable(gxFont fontID, long index, void *tableData, gxFontTableTag *tableTag)
  202. ;
  203.     IF ¬ GENERATINGCFM THEN
  204.         Macro
  205.         _GXGetFontTable
  206.             move.w    #$20d,d0
  207.             dc.w     $A832
  208.         EndM
  209.     ELSE
  210.         IMPORT_CFM_FUNCTION    GXGetFontTable
  211.     ENDIF
  212.  
  213. ;
  214. ; long GXFindFontTable(gxFont fontID, gxFontTableTag tableTag, void *tableData, long *index)
  215. ;
  216.     IF ¬ GENERATINGCFM THEN
  217.         Macro
  218.         _GXFindFontTable
  219.             move.w    #$20e,d0
  220.             dc.w     $A832
  221.         EndM
  222.     ELSE
  223.         IMPORT_CFM_FUNCTION    GXFindFontTable
  224.     ENDIF
  225.  
  226. ;
  227. ; long GXGetFontTableParts(gxFont fontID, long index, long offset, long length, void *tableData, gxFontTableTag *tableTag)
  228. ;
  229.     IF ¬ GENERATINGCFM THEN
  230.         Macro
  231.         _GXGetFontTableParts
  232.             move.w    #$20f,d0
  233.             dc.w     $A832
  234.         EndM
  235.     ELSE
  236.         IMPORT_CFM_FUNCTION    GXGetFontTableParts
  237.     ENDIF
  238.  
  239. ;
  240. ; long GXFindFontTableParts(gxFont fontID, gxFontTableTag tableTag, long offset, long length, void *tableData, long *index)
  241. ;
  242.     IF ¬ GENERATINGCFM THEN
  243.         Macro
  244.         _GXFindFontTableParts
  245.             move.w    #$210,d0
  246.             dc.w     $A832
  247.         EndM
  248.     ELSE
  249.         IMPORT_CFM_FUNCTION    GXFindFontTableParts
  250.     ENDIF
  251.  
  252. ;
  253. ; long GXSetFontTable(gxFont fontID, long index, gxFontTableTag tableTag, long length, const void *tableData)
  254. ;
  255.     IF ¬ GENERATINGCFM THEN
  256.         Macro
  257.         _GXSetFontTable
  258.             move.w    #$211,d0
  259.             dc.w     $A832
  260.         EndM
  261.     ELSE
  262.         IMPORT_CFM_FUNCTION    GXSetFontTable
  263.     ENDIF
  264.  
  265. ;
  266. ; long GXSetFontTableParts(gxFont fontID, long index, gxFontTableTag tableTag, long offset, long oldLength, long newLength, const void *tableData)
  267. ;
  268.     IF ¬ GENERATINGCFM THEN
  269.         Macro
  270.         _GXSetFontTableParts
  271.             move.w    #$212,d0
  272.             dc.w     $A832
  273.         EndM
  274.     ELSE
  275.         IMPORT_CFM_FUNCTION    GXSetFontTableParts
  276.     ENDIF
  277.  
  278. ;
  279. ; long GXDeleteFontTable(gxFont fontID, long index, gxFontTableTag tableTag)
  280. ;
  281.     IF ¬ GENERATINGCFM THEN
  282.         Macro
  283.         _GXDeleteFontTable
  284.             move.w    #$213,d0
  285.             dc.w     $A832
  286.         EndM
  287.     ELSE
  288.         IMPORT_CFM_FUNCTION    GXDeleteFontTable
  289.     ENDIF
  290.  
  291. ;
  292. ; long GXCountFontNames(gxFont fontID)
  293. ;
  294.     IF ¬ GENERATINGCFM THEN
  295.         Macro
  296.         _GXCountFontNames
  297.             move.w    #$214,d0
  298.             dc.w     $A832
  299.         EndM
  300.     ELSE
  301.         IMPORT_CFM_FUNCTION    GXCountFontNames
  302.     ENDIF
  303.  
  304. ;
  305. ; long GXGetFontName(gxFont fontID, long index, gxFontName *name, gxFontPlatform *platform, gxFontScript *script, gxFontLanguage *language, unsigned char text[])
  306. ;
  307.     IF ¬ GENERATINGCFM THEN
  308.         Macro
  309.         _GXGetFontName
  310.             move.w    #$215,d0
  311.             dc.w     $A832
  312.         EndM
  313.     ELSE
  314.         IMPORT_CFM_FUNCTION    GXGetFontName
  315.     ENDIF
  316.  
  317. ;
  318. ; long GXFindFontName(gxFont fontID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, unsigned char text[], long *index)
  319. ;
  320.     IF ¬ GENERATINGCFM THEN
  321.         Macro
  322.         _GXFindFontName
  323.             move.w    #$216,d0
  324.             dc.w     $A832
  325.         EndM
  326.     ELSE
  327.         IMPORT_CFM_FUNCTION    GXFindFontName
  328.     ENDIF
  329.  
  330. ;
  331. ; long GXSetFontName(gxFont fontID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long length, const unsigned char text[])
  332. ;
  333.     IF ¬ GENERATINGCFM THEN
  334.         Macro
  335.         _GXSetFontName
  336.             move.w    #$217,d0
  337.             dc.w     $A832
  338.         EndM
  339.     ELSE
  340.         IMPORT_CFM_FUNCTION    GXSetFontName
  341.     ENDIF
  342.  
  343. ;
  344. ; long GXDeleteFontName(gxFont fontID, long index, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language)
  345. ;
  346.     IF ¬ GENERATINGCFM THEN
  347.         Macro
  348.         _GXDeleteFontName
  349.             move.w    #$218,d0
  350.             dc.w     $A832
  351.         EndM
  352.     ELSE
  353.         IMPORT_CFM_FUNCTION    GXDeleteFontName
  354.     ENDIF
  355.  
  356. ;
  357. ; gxFontName GXNewFontNameID(gxFont fontID)
  358. ;
  359.     IF ¬ GENERATINGCFM THEN
  360.         Macro
  361.         _GXNewFontNameID
  362.             move.w    #$219,d0
  363.             dc.w     $A832
  364.         EndM
  365.     ELSE
  366.         IMPORT_CFM_FUNCTION    GXNewFontNameID
  367.     ENDIF
  368.  
  369. ;
  370. ; long GXCountFontEncodings(gxFont fontID)
  371. ;
  372.     IF ¬ GENERATINGCFM THEN
  373.         Macro
  374.         _GXCountFontEncodings
  375.             move.w    #$21a,d0
  376.             dc.w     $A832
  377.         EndM
  378.     ELSE
  379.         IMPORT_CFM_FUNCTION    GXCountFontEncodings
  380.     ENDIF
  381.  
  382. ;
  383. ; gxFontPlatform GXGetFontEncoding(gxFont fontID, long index, gxFontScript *script, gxFontLanguage *language)
  384. ;
  385.     IF ¬ GENERATINGCFM THEN
  386.         Macro
  387.         _GXGetFontEncoding
  388.             move.w    #$21b,d0
  389.             dc.w     $A832
  390.         EndM
  391.     ELSE
  392.         IMPORT_CFM_FUNCTION    GXGetFontEncoding
  393.     ENDIF
  394.  
  395. ;
  396. ; long GXFindFontEncoding(gxFont fontID, gxFontPlatform platform, gxFontScript script, gxFontLanguage language)
  397. ;
  398.     IF ¬ GENERATINGCFM THEN
  399.         Macro
  400.         _GXFindFontEncoding
  401.             move.w    #$21c,d0
  402.             dc.w     $A832
  403.         EndM
  404.     ELSE
  405.         IMPORT_CFM_FUNCTION    GXFindFontEncoding
  406.     ENDIF
  407.  
  408. ;
  409. ; long GXApplyFontEncoding(gxFont fontID, long index, long *length, const unsigned char text[], long count, unsigned short glyphs[], char was16Bit[])
  410. ;
  411.     IF ¬ GENERATINGCFM THEN
  412.         Macro
  413.         _GXApplyFontEncoding
  414.             move.w    #$21d,d0
  415.             dc.w     $A832
  416.         EndM
  417.     ELSE
  418.         IMPORT_CFM_FUNCTION    GXApplyFontEncoding
  419.     ENDIF
  420.  
  421. ;
  422. ; long GXCountFontVariations(gxFont fontID)
  423. ;
  424.     IF ¬ GENERATINGCFM THEN
  425.         Macro
  426.         _GXCountFontVariations
  427.             move.w    #$21e,d0
  428.             dc.w     $A832
  429.         EndM
  430.     ELSE
  431.         IMPORT_CFM_FUNCTION    GXCountFontVariations
  432.     ENDIF
  433.  
  434. ;
  435. ; long GXFindFontVariation(gxFont fontID, gxFontVariationTag variationTag, Fixed *minValue, Fixed *defaultValue, Fixed *maxValue, gxFontName *name)
  436. ;
  437.     IF ¬ GENERATINGCFM THEN
  438.         Macro
  439.         _GXFindFontVariation
  440.             move.w    #$21f,d0
  441.             dc.w     $A832
  442.         EndM
  443.     ELSE
  444.         IMPORT_CFM_FUNCTION    GXFindFontVariation
  445.     ENDIF
  446.  
  447. ;
  448. ; gxFontVariationTag GXGetFontVariation(gxFont fontID, long index, Fixed *minValue, Fixed *defaultValue, Fixed *maxValue, gxFontName *name)
  449. ;
  450.     IF ¬ GENERATINGCFM THEN
  451.         Macro
  452.         _GXGetFontVariation
  453.             move.w    #$220,d0
  454.             dc.w     $A832
  455.         EndM
  456.     ELSE
  457.         IMPORT_CFM_FUNCTION    GXGetFontVariation
  458.     ENDIF
  459.  
  460. ;
  461. ; long GXCountFontInstances(gxFont fontID)
  462. ;
  463.     IF ¬ GENERATINGCFM THEN
  464.         Macro
  465.         _GXCountFontInstances
  466.             move.w    #$221,d0
  467.             dc.w     $A832
  468.         EndM
  469.     ELSE
  470.         IMPORT_CFM_FUNCTION    GXCountFontInstances
  471.     ENDIF
  472.  
  473. ;
  474. ; gxFontName GXGetFontInstance(gxFont fontID, long index, gxFontVariation variation[])
  475. ;
  476.     IF ¬ GENERATINGCFM THEN
  477.         Macro
  478.         _GXGetFontInstance
  479.             move.w    #$222,d0
  480.             dc.w     $A832
  481.         EndM
  482.     ELSE
  483.         IMPORT_CFM_FUNCTION    GXGetFontInstance
  484.     ENDIF
  485.  
  486. ;
  487. ; long GXSetFontInstance(gxFont fontID, long index, gxFontName name, const gxFontVariation variation[])
  488. ;
  489.     IF ¬ GENERATINGCFM THEN
  490.         Macro
  491.         _GXSetFontInstance
  492.             move.w    #$223,d0
  493.             dc.w     $A832
  494.         EndM
  495.     ELSE
  496.         IMPORT_CFM_FUNCTION    GXSetFontInstance
  497.     ENDIF
  498.  
  499. ;
  500. ; long GXDeleteFontInstance(gxFont fontID, long index, gxFontName name)
  501. ;
  502.     IF ¬ GENERATINGCFM THEN
  503.         Macro
  504.         _GXDeleteFontInstance
  505.             move.w    #$224,d0
  506.             dc.w     $A832
  507.         EndM
  508.     ELSE
  509.         IMPORT_CFM_FUNCTION    GXDeleteFontInstance
  510.     ENDIF
  511.  
  512. ;
  513. ; long GXCountFontDescriptors(gxFont fontID)
  514. ;
  515.     IF ¬ GENERATINGCFM THEN
  516.         Macro
  517.         _GXCountFontDescriptors
  518.             move.w    #$225,d0
  519.             dc.w     $A832
  520.         EndM
  521.     ELSE
  522.         IMPORT_CFM_FUNCTION    GXCountFontDescriptors
  523.     ENDIF
  524.  
  525. ;
  526. ; gxFontDescriptorTag GXGetFontDescriptor(gxFont fontID, long index, Fixed *descriptorValue)
  527. ;
  528.     IF ¬ GENERATINGCFM THEN
  529.         Macro
  530.         _GXGetFontDescriptor
  531.             move.w    #$226,d0
  532.             dc.w     $A832
  533.         EndM
  534.     ELSE
  535.         IMPORT_CFM_FUNCTION    GXGetFontDescriptor
  536.     ENDIF
  537.  
  538. ;
  539. ; long GXFindFontDescriptor(gxFont fontID, gxFontDescriptorTag descriptorTag, Fixed *descriptorValue)
  540. ;
  541.     IF ¬ GENERATINGCFM THEN
  542.         Macro
  543.         _GXFindFontDescriptor
  544.             move.w    #$227,d0
  545.             dc.w     $A832
  546.         EndM
  547.     ELSE
  548.         IMPORT_CFM_FUNCTION    GXFindFontDescriptor
  549.     ENDIF
  550.  
  551. ;
  552. ; long GXSetFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag, Fixed descriptorValue)
  553. ;
  554.     IF ¬ GENERATINGCFM THEN
  555.         Macro
  556.         _GXSetFontDescriptor
  557.             move.w    #$228,d0
  558.             dc.w     $A832
  559.         EndM
  560.     ELSE
  561.         IMPORT_CFM_FUNCTION    GXSetFontDescriptor
  562.     ENDIF
  563.  
  564. ;
  565. ; long GXDeleteFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag)
  566. ;
  567.     IF ¬ GENERATINGCFM THEN
  568.         Macro
  569.         _GXDeleteFontDescriptor
  570.             move.w    #$229,d0
  571.             dc.w     $A832
  572.         EndM
  573.     ELSE
  574.         IMPORT_CFM_FUNCTION    GXDeleteFontDescriptor
  575.     ENDIF
  576.  
  577. ;
  578. ; long GXCountFontFeatures(gxFont fontID)
  579. ;
  580.     IF ¬ GENERATINGCFM THEN
  581.         Macro
  582.         _GXCountFontFeatures
  583.             move.w    #$22a,d0
  584.             dc.w     $A832
  585.         EndM
  586.     ELSE
  587.         IMPORT_CFM_FUNCTION    GXCountFontFeatures
  588.     ENDIF
  589.  
  590. ;
  591. ; gxFontName GXGetFontFeature(gxFont fontID, long index, gxFontFeatureFlag *flags, long *settingCount, gxFontFeatureSetting settings[], gxFontFeature *feature)
  592. ;
  593.     IF ¬ GENERATINGCFM THEN
  594.         Macro
  595.         _GXGetFontFeature
  596.             move.w    #$22b,d0
  597.             dc.w     $A832
  598.         EndM
  599.     ELSE
  600.         IMPORT_CFM_FUNCTION    GXGetFontFeature
  601.     ENDIF
  602.  
  603. ;
  604. ; gxFontName GXFindFontFeature(gxFont fontID, gxFontFeature feature, gxFontFeatureFlag *flags, long *settingCount, gxFontFeatureSetting settings[], long *index)
  605. ;
  606.     IF ¬ GENERATINGCFM THEN
  607.         Macro
  608.         _GXFindFontFeature
  609.             move.w    #$22c,d0
  610.             dc.w     $A832
  611.         EndM
  612.     ELSE
  613.         IMPORT_CFM_FUNCTION    GXFindFontFeature
  614.     ENDIF
  615.  
  616. ;
  617. ; long GXGetFontDefaultFeatures(gxFont fontID, gxRunFeature features[])
  618. ;
  619.     IF ¬ GENERATINGCFM THEN
  620.         Macro
  621.         _GXGetFontDefaultFeatures
  622.             move.w    #$274,d0
  623.             dc.w     $A832
  624.         EndM
  625.     ELSE
  626.         IMPORT_CFM_FUNCTION    GXGetFontDefaultFeatures
  627.     ENDIF
  628.  
  629. ;
  630. ; void GXFlattenFont(gxFont source, scalerStream *stream, gxSpoolBlock *block)
  631. ;
  632.     IF ¬ GENERATINGCFM THEN
  633.         Macro
  634.         _GXFlattenFont
  635.             move.w    #$22d,d0
  636.             dc.w     $A832
  637.         EndM
  638.     ELSE
  639.         IMPORT_CFM_FUNCTION    GXFlattenFont
  640.     ENDIF
  641.  
  642.     ENDIF ; __GXFONTS__
  643.